//
//  YoLoadingHelpView.h
//  DawnHealth
//
//  Created by hrrMac on 2019/12/10.
//  Copyright © 2019 hheTeamiOS. All rights reserved.
//

typedef NS_ENUM(NSInteger, LoadingHelpType) {
    ///优惠券
    LoadingHelpTypeCoupons,
    ///收货地址
    LoadingHelpTypeAddressBtn,
    ///订单
    LoadingHelpTypeOrder,
    ///暂无关注
    LoadingHelpTypeConcer,
    ///暂无网络
    LoadingHelpTypeNetWorkBtn,
    ///暂无收藏
    LoadingHelpTypeCollectionBtn,
    ///通用的
    LoadingHelpTypeNormal,
    ///数据错误
    LoadingHelpTypeErrorData,
    ///没有回答
    LoadingHelpTypeNOAnswer,
};

@class YoLoadingHelpView;

@protocol YoLoadingHelpDelegate <NSObject>

@required

-(void)loadingHelpBtnClick;

-(void)loadingHelpError;

@end

NS_ASSUME_NONNULL_BEGIN

@interface YoLoadingHelpView : UIView

@property (weak, nonatomic) id<YoLoadingHelpDelegate> delegate;

///展示loading挡板
-(void)showLoadingHelp;

///开始定义好的一些界面需要的
-(void)showEmptyAndError:(LoadingHelpType)type;

///自定义挡板的内容和图片
-(void)showEmpty:(NSString *)emptyStr withImg:(NSString *)img;

///自定义挡板的内容，btnTitle为空的时候隐藏按钮
-(void)showEmpty:(NSString *)emptyStr withImg:(NSString *)img withBtnTitle:(NSString *)btnTitle;


-(void)yoShowEmpty;

-(void)viewContentOffSet:(float)y;

@end

NS_ASSUME_NONNULL_END
